package jbstoremgmt.dao;

public class Runner implements Runnable{
    public static String s = "lock string";
	public void run(){
    	System.out.println("inside run method");
    	show();
    	/*try{
    		Thread.sleep(2500);
    	}
    	catch( Exception e) {
    		e.printStackTrace();
    	}*/
    }
   
    
    public synchronized void show()
    {
    	System.out.println("inside show method before sync block");	
    	synchronized (s) {
        	System.out.println("inside show method after sync block ");			
    	}
    }	
}